﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace gpuimp.core.ColorConverter
{
    public class ColorPickerColor
    {
        public ColorPickerColor()
        {

        }
        public ColorPickerColor(Color color)
        {
            this.R = color.R;
            this.G = color.G;
            this.B = color.B;
        }
        public static implicit operator Color(ColorPickerColor cpc){
            return Color.FromArgb(cpc.R, cpc.G, cpc.B);
        }
        protected String ToHex(ColorPickerColor cpc)
        {
            return ColorTranslator.ToHtml(Color.FromArgb(cpc.R, cpc.G, cpc.B));
        }
        public static explicit operator ColorPickerColor(Color color)
        {
            return new ColorPickerColor(color);
        }

        public byte R
        {
            get { return R; }
            set { R = value; }
        }
        public byte G
        {
            get { return G; }
            set { G = value; }
        }
        public byte B
        {
            get { return B; }
            set { B = value; }
        }
    }
}
